<%@ page language="java" contentType="text/html;charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
<title>自动生成代码系统</title>
<%@include file="/WEB-INF/header.jsp" %>
</head>
<link href="${ctx}/bootstrap-3.1.1-dist/css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="${ctx}/css/pagination.css" rel="stylesheet" media="screen">
<style type="text/css">
.queryCondition{
	width: 1200px;
	float: left;
	line-height: 20px;
	margin-left: auto;
	margin-right: auto;
	padding: 5px;
	border-bottom: 1px solid #1da811;
}
.table_data{
	width: 1200px;
	float: left;
	margin-left: auto;
	margin-right: auto;	
}
.querybtn{
	text-align: center;
	border-bottom: 3px solid #1da811;
	padding-bottom: 10px;
}
.divTitle{
	width: 1200px;
	float: left;
	height: 30px;
	font-size: 18px;
	margin-left: auto;
	margin-right: auto;
	color: #999;
}
.queryCondition table tr td{
	width: 190px;
	margin: 5px 5px 5px 5px;
}
.divshow{
	width: 1200px;
	float: left;
	line-height: 20px;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
	border: 1px solid #1da811;
	word-break:break-all;
}
.divshowcondition{
	width: 1200px;
	float: left;
	line-height: 20px;
	margin-left: auto;
	margin-right: auto;
	padding: 20px;
}
.conditionDes{
	width: 1200px;
	float: left;
	line-height: 20px;
	margin-left: auto;
	margin-right: auto;
	color: red;
	font-size: 14px;
	text-align: center;
}
</style>
<script type="text/javascript" src="${ctx}/js/common/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="${ctx}/bootstrap-3.1.1-dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="${ctx}/js/common/jquery.pagination.js"></script>
<script type="text/javascript" src="${ctx}/layer/layer.js"></script>
<script type="text/javascript" src="${ctx}/admin/sql/javascript/sql.js"></script>
<script type="text/javascript">	
	
</script>
<body>
	<div style="width:1200px;margin-left:auto;margin-right:auto;">
		<div class="querybtn">
			<input type="hidden" value="0" id="hidTableNameValue"/>
			
			<input type="button"  class="btn btn-success" style="width:100px;margin-right: 10px;" value="返回" onclick="btnReturn();"/>
			<input type="button"  class="btn btn-success" style="width:100px;margin-right: 10px;" value="生成条件" onclick="btnCondition();"/>
			<input type="button" class="btn btn-success" style="width:100px;margin-right: 10px;"  value="清除条件" onclick="clearTxt();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="生成Insert" onclick="btnInsert();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="生成Select" onclick="btnSelect();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="生成Delete" onclick="btnImport();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="生成Update" onclick="btnUpdate();"/>
			<input type="button"  class="btn btn-primary" style="width:100px;margin-right: 10px;" value="清除SQL" onclick="btnClearSql();"/>
		</div>
		<div class="divTitle">
			条件编辑区域
		</div>
		<div class="conditionDes">
			备注：Insert语句没有条件
		</div>
		<div class="divshowcondition">
			<textarea style="width:100%;height:100px;" id="txtCondition"></textarea>
		</div>
		<div class="divTitle">
			字段&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" onmousedown="clickAllSelect();"  value="0"/><span style="color:#1da811;">全选</span>
		</div>
		<div class="queryCondition" id="divChks">
			
		</div>
		<div class="divTitle" >
			条件&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input type="checkbox" onmousedown="clickAllSelect1();" value="0"/><span style="color:#1da811;">全选</span>
		</div>
		<div class="queryCondition" id="divChks1">
			
		</div>
		<div class="divTitle" >
			SQL语句
		</div>
		<div class="divshow" id="divShow">
			
		</div>
	
	</div>
</body>
</html>